package com.lx.demo.sync.service;

import com.lx.demo.constans.BaseConstant;
import com.lx.demo.constans.ExtDataEsInxConstant;
import com.lx.demo.sync.base.ExtFetchDataRequest;
import com.lx.demo.sync.base.ExtPage;
import com.lx.demo.sync.executor.ExtSyncAbstract;

import java.util.List;


/**
 * 药品拉取服务
 * @author wcy
 */
public class DrugSyncService extends ExtSyncAbstract {



    @Override
    protected String getIdxName() {
        return ExtDataEsInxConstant.DRUG_ES_IDX_NAME;    }

    @Override
    protected ExtPage fetchSourceData(ExtFetchDataRequest request) {
        // 判断调取中台接口是否成功并且是否有数据
//        if (!isSuccessAndData(responsePageResult)) {
//            return BaseConstant.EXT_PAGE_NULL;
//        }
    }

    @Override
    protected void bulkToDb(List<?> esSyncModelList) {

    }
}
